import { BaseEntity } from '../../base/entity/base';
import { Column, Entity, Index } from 'typeorm';

/**
 * 广告
 */
@Entity('advertisement')
export class AdvertisementEntity extends BaseEntity {
  @Column({ comment: '广告图片', nullable: true })
  advertisementImg: string;

  @Column({ comment: '广告链接', nullable: true })
  advertisementLink: string;

  @Column({ comment: '广告名称', nullable: true })
  advertisementName: string;

  // 广告类型，轮播图或者文字
  @Column({ comment: '广告类型', nullable: true, dict: ['轮播图', '文字'] })
  advertisementType: number;
}
